#ifndef __BULLET_OBJ_H__
#define __BULLET_OBJ_H__

#include "impact/impactobj.h"
#include "./modelobj.h"

class BulletObj : public ModelObj<BulletObj>, public ImpactObj
{
	MODEL_DEFINE
public:
	BulletObj(int id, Color color, ImpactObj* pShootObj);
	~BulletObj();

	void SetBulletStart(Point startPos, float startRadian);

	//ImpactObj implement
	float GetRange();
	float GetHeadingRadian();
	Point GetPos();

private:
	void CheckRange();
	bool CheckImpacted();

	void OnRender(float differTime);
private:	
	//information
	float m_radian;
	Point m_pos;
};

#endif